import {Script, Word, Dictionary,OpCode} from './compiler.ts';
export class CompositeDictionary implements Dictionary {
    constructor(private dictionaries:Dictionary[]) {}
    async lookup(word:string):Promise<Word|undefined> {
        for (var dict of this.dictionaries) {
            var found = await dict.lookup(word);
            if (found) {
                return found;
            }
        }
        return undefined;
    }
}